package cn.zhibang.sannuo.maintenance.service.impl;

import cn.zhibang.sannuo.commons.model.Role;
import cn.zhibang.sannuo.maintenance.dao.MRoleDao;
import cn.zhibang.sannuo.maintenance.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName RoleServiceImpl.java
 * @Description TODO
 * @createTime 2021年04月08日 19:09:00
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired private MRoleDao roleDao;

    @Override
    public List<Role> selAllRole() {
        return roleDao.selectAllRole();
    }

    @Override
    public void upRole(Role role) {
        roleDao.updateRole(role);
    }
}
